package com.cljh.service;

import com.cljh.bean.Admin;
import com.cljh.controller.page.PageBean;
import com.cljh.controller.page.ProductPageBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminService {

    boolean save( Admin admin);


    Admin selectByUsername(Admin admin);


    Admin select(Admin admin);

    boolean upd(@Param("admin")Admin admin);

    Admin getById(Integer id);

    PageBean<Admin> selectAllByCondition(Integer currentPage, Integer pageSize, Admin admin);

    boolean deleteId(Integer id);

    boolean deleteIds( List<Integer> ids);

    Admin selectById(@Param("id")Integer id);

    List<Admin> selectAll();

    boolean saveAll(List<Admin> adminList);

    Admin selectByEmail(String username, String emailCode);

    Admin selectByEmailCode(String email);
}
